const Person = require("./person.js");
const Class = require("./class.js");
class Student extends Person{
    constructor(id,name,age,klass){
        super(id,name,age);
        this.klass=klass
    }
    introduce(){
        if(this==this.klass.leader)
            return `${super.introduce()} I am a Student. I am Leader of ${this.klass.getDisplayName()}.`
        return `${super.introduce()} I am a Student. I am at ${this.klass.getDisplayName()}.`
    }
}
module.exports=Student







